import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        name: "Login",
        component: () => import('../views/Login.vue')
    },
    {
        path: "/Register",
        name: "Register",
        component: () => import('../views/Register.vue')
    }
]
const router = createRouter({
    history: createWebHistory(),
    //存放路由信息
    routes
})
//导出路由
export default router